import cn.hutool.core.io.unit.DataSize;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className FileSizeUtil
 * @description TODO
 * @site
 * @company
 * @create 2021/12/24 17:32:44
 */
public class FileSizeUtil {
    public static void main(String[] args) {
        System.out.println(DataSize.parse("1MB").toBytes());
        System.out.println(DataSize.parse("10MB").toBytes());
        System.out.println(DataSize.parse("100MB").toBytes());
        System.out.println(DataSize.parse("1GB").toBytes());
        System.out.println(DataSize.parse("10GB").toBytes());
        System.out.println(DataSize.parse("100GB").toBytes());
        System.out.println(DataSize.parse("1000GB").toBytes());
    }
}